public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        try {
            myArraylist.add(1);
            myArraylist.add(2);
            myArraylist.add(3);
            myArraylist.add(4);
            myArraylist.add(5);
            myArraylist.add(8);
            myArraylist.add(1);
            myArraylist.display();
        }
        catch (PosException e){
            e.printStackTrace();
        }

    }


}
